package com.suyang.syt.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/** 系统操作日志表 */
@Entity
@Table(name = "SYS_OPERATE_LOG")
@SuppressWarnings("serial")
public class OperateLog implements Serializable {
	private long id;
	private String createName;
	private String createTime;
	/** 状态为0表示正常日志(数据库增删改操作),状态为1表示异常日志 */
	private int status;
	/** 操作者IP */
	private String ip;
	/** 操作内容 */
	private String action;
	/** 操作异常信息 */
	private String exception;

	private String operate;

	@Id
	@GeneratedValue
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Column(length = 4000)
	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	@Column(length = 4000)
	public String getException() {
		return exception;
	}

	public void setException(String exception) {
		this.exception = exception;
	}

	public String getOperate() {
		return operate;
	}

	public void setOperate(String operate) {
		this.operate = operate;
	}

}
